/* 重置标记内容的 normalize.css 样式 */
.markdown-content,
.markdown-content * {
  margin: revert;
  padding: revert;
  font-size: revert;
  font-family: revert;
  line-height: revert;
  color: revert;
  background: revert;
  border: revert;
  box-sizing: revert;
  vertical-align: revert;
  list-style: revert;
  quotes: revert;
}

/* 代码样式 - 放在重置规则后 */
.markdown-content code:not(pre code) {
  color: #3dd68c;
  background-color: rgba(61, 214, 140, 0.1);
  padding: 2px 4px;
  border-radius: 2px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 90%;
}

/* markdown 表格样式 */
.markdown-content {
  /* 表格容器样式 */
  table {
    border-collapse: collapse;
    width: 100%;
    margin: 1rem 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
  }

  /* 表头样式 */
  thead {
    background-color: #f8f9fa;
    font-weight: 600;
  }

  /* 单元格基础样式 */
  th,
  td {
    padding: 12px 15px;
    text-align: left;
    border: 1px solid #dee2e6;
  }

  /* 斑马纹效果 */
  tbody tr:nth-child(even) {
    background-color: #f8f9fa;
  }

  /* 悬停效果 */
  tbody tr:hover {
    background-color: #e9ecef;
  }
}
